#基于上一个ssh镜像构建
FROM cys/ubuntu-ssh    

#到tmp目录下载jdk                                      
RUN wget https://repo.huaweicloud.com/java/jdk/8u202-b08/jdk-8u202-linux-x64.tar.gz

# 解压之后是 jdk1.8.0_202
RUN tar xvf jdk-8u202-linux-x64.tar.gz

RUN mv jdk1.8.0_202 /usr/local/jdk8
ENV JAVA_HOME /usr/local/jdk8
ENV PATH $JAVA_HOME/bin:$PATH
